/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package model.pojo;

/**
 *
 * @author TiOc
 */
public class Product implements java.io.Serializable
{
    //<editor-fold defaultstate="collapsed" desc="1. Các thuộc tính">
    private int idProduct;
    private String nameProduct;
    private int idBrandName;
    private int idCatalogue;
    private String image;
    private double price;
    private String warranty;
    private String specialOffer;
    private int isPublish;
    //</editor-fold>

    //<editor-fold defaultstate="collapsed" desc="2. Các phương thức khởi tạo">
    public Product()
    {
        this.idProduct = -1;
        this.nameProduct = "";
        this.idBrandName = -1;
        this.idCatalogue = -1;
        this.image = "";
        this.price = 0;
        this.warranty = "";
        this.specialOffer = "";
        this.isPublish = -1;
    }

    public Product(int idProduct, String nameProduct, int idBrandName, int idCatalogue, String image, double price, String warranty, String specialOffer, int isPublish) 
    {
        this.idProduct = idProduct;
        this.nameProduct = nameProduct;
        this.idBrandName = idBrandName;
        this.idCatalogue = idCatalogue;
        this.image = image;
        this.price = price;
        this.warranty = warranty;
        this.specialOffer = specialOffer;
        this.isPublish = isPublish;
    }
    
    public Product(Product pd)
    {
        this.idProduct = pd.idProduct;
        this.nameProduct = pd.nameProduct;
        this.idBrandName = pd.idBrandName;
        this.idCatalogue = pd.idCatalogue;
        this.image = pd.image;
        this.price = pd.price;
        this.warranty = pd.warranty;
        this.specialOffer = pd.specialOffer;
        this.isPublish = pd.isPublish;
    }

    //</editor-fold>

    //<editor-fold defaultstate="collapsed" desc="3. Các phương thức get/set">

    public int getIdBrandName() {
        return idBrandName;
    }

    public void setIdBrandName(int idBrandName) {
        this.idBrandName = idBrandName;
    }

    public int getIdCatalogue() {
        return idCatalogue;
    }

    public void setIdCatalogue(int idCatalogue) {
        this.idCatalogue = idCatalogue;
    }

    public int getIdProduct() {
        return idProduct;
    }

    public void setIdProduct(int idProduct) {
        this.idProduct = idProduct;
    }

    public String getImage() {
        return image;
    }

    public void setImage(String image) {
        this.image = image;
    }

    public int getIsPublish() {
        return isPublish;
    }

    public void setIsPublish(int isPublish) {
        this.isPublish = isPublish;
    }

    public String getNameProduct() {
        return nameProduct;
    }

    public void setNameProduct(String nameProduct) {
        this.nameProduct = nameProduct;
    }

    public double getPrice() {
        return price;
    }
    
    public void setPrice(double price) {
        this.price = price;
    }

    public String getSpecialOffer() {
        return specialOffer;
    }

    public void setSpecialOffer(String specialOffer) {
        this.specialOffer = specialOffer;
    }

    public String getWarranty() {
        return warranty;
    }

    public void setWarranty(String warranty) {
        this.warranty = warranty;
    }

    @Override
    public String toString()
    {
        return this.nameProduct;
    }
    //</editor-fold>
}
